﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DownloadMovieImg.aspx.cs" Inherits="EditDownload_Movie_DownloadMovieImg" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>下载电影图片</title>
</head>
<body>
    <form id="form1" runat="server">
        <p>
            电影数据表名：<asp:TextBox ID="TextBoxTableName" runat="server"></asp:TextBox>
            (如： UncheckedMovieXiaoDiao )</p>
        <p>
            图片名称前缀：<asp:TextBox ID="TextBoxImgPrefix" runat="server"></asp:TextBox>
            (用网站名称做前缀，防止重复。如：xddy)</p>
        <p>
            生成模式<asp:DropDownList ID="DropDownListMode" runat="server">
                <asp:ListItem Value="AutoFixed">自动调整宽高，小图放大</asp:ListItem>
                <asp:ListItem Value="Auto">自动调整宽高，不放大</asp:ListItem>
            </asp:DropDownList>
            生成图片宽度<asp:TextBox ID="TextBoxWidth" runat="server" Width="50px"></asp:TextBox>
&nbsp;生成图片高度<asp:TextBox ID="TextBoxHeight" runat="server" Width="50px"></asp:TextBox>
        </p>
        <p>
            开始ID：<asp:TextBox ID="TextBoxStartId" runat="server"></asp:TextBox>
            结束ID：<asp:TextBox ID="TextBoxEndId" runat="server"></asp:TextBox>
            (包含开始、结束ID [start, end] )</p>
        <p>
            <asp:RangeValidator ID="RangeStart" runat="server" ControlToValidate="TextBoxStartId" ErrorMessage="开始ID必须是数字" MaximumValue="1000000" MinimumValue="1" Type="Integer" ValidationGroup="down"></asp:RangeValidator>
            <asp:RangeValidator ID="RangeEnd" runat="server" ControlToValidate="TextBoxEndId" ErrorMessage="结束ID必须是数字" MaximumValue="1000000" MinimumValue="1" Type="Integer" ValidationGroup="down"></asp:RangeValidator>
            <asp:RequiredFieldValidator ID="ReqTableName" runat="server" ControlToValidate="TextBoxTableName" ErrorMessage="输入要下载图片的表名" ValidationGroup="down"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="ReqPrefix" runat="server" ControlToValidate="TextBoxImgPrefix" ErrorMessage="输入图片前缀" ValidationGroup="down"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="ReqStart" runat="server" ControlToValidate="TextBoxStartId" ErrorMessage="输入开始ID" ValidationGroup="down"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="ReqEnd" runat="server" ControlToValidate="TextBoxEndId" ErrorMessage="输入结束ID" ValidationGroup="down"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="ReqWidth" runat="server" ControlToValidate="TextBoxWidth" ErrorMessage="输入图片宽度" ValidationGroup="down"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="ReqHeight" runat="server" ControlToValidate="TextBoxHeight" ErrorMessage="输入图片高度" ValidationGroup="down"></asp:RequiredFieldValidator>
            <asp:RangeValidator ID="RangeWidth" runat="server" ControlToValidate="TextBoxWidth" ErrorMessage="图片宽度必须是数字(50-1000)" MaximumValue="1000" MinimumValue="50" Type="Integer" ValidationGroup="down"></asp:RangeValidator>
            <asp:RangeValidator ID="RangeHeight" runat="server" ControlToValidate="TextBoxHeight" ErrorMessage="图片高度必须是数字（50-1000）" MaximumValue="1000" MinimumValue="50" Type="Integer" ValidationGroup="down"></asp:RangeValidator>
        </p>
        <p>
            <asp:Label ID="LabelMsg" runat="server" ForeColor="Red"></asp:Label>
            <asp:Button ID="ButtonDownload" runat="server" onclick="ButtonDownload_Click" Text="开始下载图片" ValidationGroup="down" />
        
        </p>
    <div>
    
    </div>
    </form>
</body>
</html>
